/*
** builtins.c for mysh in /home/nadali_t//local/svn/tek2ed/minishell1
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Thu Nov  8 12:24:08 2012 thomas nadalie
** Last update Thu Nov  8 12:24:36 2012 thomas nadalie
*/

#include	"my.h"

char		**catch_builtins(char **cmd, char **env, t_list *list)
{
  if (my_strcpr(cmd[0], "env") == 1)
    return (my_env(env));
  else if (my_strcpr(cmd[0], "setenv") == 1)
    return (my_setenv(env, cmd[1], list));
  else if (my_strcpr(cmd[0], "unsetenv") == 1)
    return (my_unsetenv(env, cmd[1], list));
  else if (my_strcpr(cmd[0], "exit") == 1)
    my_exit(cmd[0], list);
  else if (my_strcmp(cmd[0], "/") == 0)
    //gerer les options
    my_bin(cmd[0], env, list);
  return (env);
}
